﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace WeiXinPF.Modules.Core.Admin.Application.Services
{
    /// <summary>
    /// 广告服务接口
    /// </summary>
    public interface IADService
    {
        /// <summary>
        /// 通过类别获取
        /// </summary>
        /// <param name="userId"></param>
        /// <param name="categoryId"></param>
        /// <returns></returns>
        IEnumerable<Model.advertisement> GetAdvertismentsByCategoryId(int weixinId,int userId, int categoryId);

        void Add(Model.advertisement model);

        void Update(Model.advertisement model);


        void delete(int id);

        string GetCateGoryNamebyID(int categoryid);

        int GetCateGoryIDbyName(string categoryname);

        DataTable GetAllCateGory();
    }
}
